import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';
var ɵ0 = { type: 'string' };
var Zzry0ckmComponentViewmodel = /** @class */ (function (_super) {
    tslib_1.__extends(Zzry0ckmComponentViewmodel, _super);
    function Zzry0ckmComponentViewmodel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bindingPath = '/zzrys';
        _this.dom = {
            "zzry-0ckm-dataGrid": {
                "type": "DataGrid",
                "resourceId": "zzry-0ckm-dataGrid",
                "visible": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": true
                },
                "id": "zzry-0ckm-dataGrid",
                "readonly": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": false
                },
                "fields": [
                    {
                        "type": "GridField",
                        "resourceId": "code_7daf5d0d_ljnv",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "code_7daf5d0d_ljnv",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "code",
                            "fullPath": "Code",
                            "isExpression": false,
                            "value": "code"
                        },
                        "dataField": "code",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "编号",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "code_7daf5d0d_udkn",
                            "defaultI18nValue": "编号",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "code_7daf5d0d_udkn",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "code",
                                "fullPath": "Code",
                                "isExpression": false,
                                "value": "code"
                            },
                            "disable": false,
                            "maxLength": 100,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "name_32e463bc_hp60",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "name_32e463bc_hp60",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "name",
                            "fullPath": "Name",
                            "isExpression": false,
                            "value": "name"
                        },
                        "dataField": "name",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "姓名",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "name_32e463bc_w2ya",
                            "defaultI18nValue": "姓名",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "name_32e463bc_w2ya",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "name",
                                "fullPath": "Name",
                                "isExpression": false,
                                "value": "name"
                            },
                            "disable": false,
                            "maxLength": 1000,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "gender_0414b14e_1meu",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "gender_0414b14e_1meu",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "gender",
                            "fullPath": "Gender",
                            "isExpression": false,
                            "value": "gender"
                        },
                        "dataField": "gender",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "性别",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "gender_0414b14e_hkdl",
                            "defaultI18nValue": "性别",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "gender_0414b14e_hkdl",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "gender",
                                "fullPath": "Gender",
                                "isExpression": false,
                                "value": "gender"
                            },
                            "disable": false,
                            "maxLength": 22,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "state_7705aa4e_anle",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "state_7705aa4e_anle",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "state",
                            "fullPath": "State",
                            "isExpression": false,
                            "value": "state"
                        },
                        "dataField": "state",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "状态",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "state_7705aa4e_pqg9",
                            "defaultI18nValue": "状态",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "state_7705aa4e_pqg9",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "state",
                                "fullPath": "State",
                                "isExpression": false,
                                "value": "state"
                            },
                            "disable": false,
                            "maxLength": 22,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "organization_b880477b_mgfh",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "organization_b880477b_mgfh",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "organization",
                            "fullPath": "Organization",
                            "isExpression": false,
                            "value": "organization"
                        },
                        "dataField": "organization",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "组织",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "organization_b880477b_josl",
                            "defaultI18nValue": "组织",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "organization_b880477b_josl",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "organization",
                                "fullPath": "Organization",
                                "isExpression": false,
                                "value": "organization"
                            },
                            "disable": false,
                            "maxLength": 36,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "countryOrArea_1258f8e9_tvka",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "countryOrArea_1258f8e9_tvka",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "countryOrArea",
                            "fullPath": "CountryOrArea",
                            "isExpression": false,
                            "value": "countryOrArea"
                        },
                        "dataField": "countryOrArea",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "所属国家或地区",
                        "editor": {
                            "type": "TextBox",
                            "isTextArea": true,
                            "resourceId": "countryOrArea_1258f8e9_mqsz",
                            "defaultI18nValue": "所属国家或地区",
                            "visible": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": true
                            },
                            "id": "countryOrArea_1258f8e9_mqsz",
                            "size": {},
                            "readonly": {
                                "useQuote": false,
                                "isExpression": false,
                                "value": false
                            },
                            "binding": {
                                "type": "Form",
                                "path": "countryOrArea",
                                "fullPath": "CountryOrArea",
                                "isExpression": false,
                                "value": "countryOrArea"
                            },
                            "disable": false,
                            "maxLength": 22,
                            "isPassword": false,
                            "enableViewPassword": false
                        },
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    }
                ],
                "multiSelect": false,
                "showLineNumber": false,
                "lineNumberTitle": "#",
                "groupTotalText": "Total",
                "filterable": false,
                "groupable": false,
                "rowClass": ""
            }
        };
        return _this;
    }
    Zzry0ckmComponentViewmodel.prototype.zzry0ckmcomponentviewmodelAddItem1 = function (commandParam) { return; };
    Zzry0ckmComponentViewmodel.prototype.zzry0ckmcomponentviewmodelRemoveItem1 = function (commandParam) { return; };
    tslib_1.__decorate([
        NgCommand({
            name: 'zzry0ckmcomponentviewmodelAddItem1',
            params: {}
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], Zzry0ckmComponentViewmodel.prototype, "zzry0ckmcomponentviewmodelAddItem1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'zzry0ckmcomponentviewmodelRemoveItem1',
            params: {
                id: '{DATA~/#{zzry-0ckm-component}/zzrys/id}'
            },
            paramDescriptions: {
                id: ɵ0
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], Zzry0ckmComponentViewmodel.prototype, "zzry0ckmcomponentviewmodelRemoveItem1", null);
    Zzry0ckmComponentViewmodel = tslib_1.__decorate([
        Injectable()
    ], Zzry0ckmComponentViewmodel);
    return Zzry0ckmComponentViewmodel;
}(ViewModel));
export { Zzry0ckmComponentViewmodel };
export { ɵ0 };
